#include "RobotFallCommand.h"

RobotFallCommand::RobotFallCommand(Robot* receiver): robot(receiver)
{
}

RobotFallCommand::RobotFallCommand(const RobotFallCommand& rhs): GameCommand(rhs), robot(rhs.robot)
{
}

RobotFallCommand::~RobotFallCommand()
{
}

void RobotFallCommand::Execute()
{
	if (robot)
	{
		robot->Fall();
	}
}

GameCommand* RobotFallCommand::Clone() const
{
	return new RobotFallCommand(*this);
}
